package com.pkk.penguin.test.elasticsearch.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;

/**
 * @description: elasticSearch的配置
 * @author: peikunkun
 * @create: 2019-10-12 17:26
 **/
@Configuration
public class ElasticSearchConfig implements CommandLineRunner {


  @Override
  public void run(String... args) throws Exception {
    //initServer();
  }


  public static final void initServer() {
    //解决es与redis、netty等操作冲突报错
    System.setProperty("es.set.netty.runtime.available.processors", "false");
  }


}
